﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Messages.Game.Character.Creation
{
    public class CharacterCreationRequestMessage : NetworkMessage
    {
        public string Name { get; set; }
        public byte Breed { get; set; }
        public bool Sex { get; set; }
        public List<int> Colors = new List<int>();

        public CharacterCreationRequestMessage(NetworkMessageReader reader)
            : base(reader)
        {
            this.Name = reader.Reader.readUTF();
            this.Breed = reader.Reader.readByte();
            this.Sex = reader.Reader.readBoolean();
            for (int i = 0; i < 5; i++)
            {
                Colors.Add(reader.Reader.readInt());
            }
        }
    }
}
